// Add any 3rd party init.sqf scripts here
mk_fTaskHint = compile (preprocessFileLineNumbers "scripts\fTaskHint.sqf");

if((!(isDedicated)) && (isplayer player)) then 
{
	player setskill 0;
	player disableAI "FSM";
	player disableAI "MOVE";
	player disableAI "ANIM";
	player disableAI "TARGET";
	player disableAI "AUTOTARGET";
	player setVariable ["BIS_noCoreConversations", true];
	execVM "scripts\Operator_Menu\ICE_questionHUD\init.sqf";
	execVM "scripts\Operator_Menu\ICE_squadManagement\init.sqf";
	waitUntil {!isNil "mso_interaction_key"};
	#include "\ca\editor\Data\Scripts\dikCodes.h"
	//_SquadManagement = [["",""],[["Squad Management", "call compile preprocessFileLineNumbers 'scripts\Operator_Menu\ICE_squadManagement\custom\showWithOptions.sqf'", "", "", "", -1, 1, 1]]];
	//_OperatorMenu = [["",""],[["Operator Menu", "execVM 'scripts\Operator_Menu\Operator_Menu.sqf'", "", "", "", -1, 1, 1]]];
	// This menu setup doesn't work right...
	//["player", [mso_interaction_key],-110, _OperatorMenu] call CBA_ui_fnc_add;
	//["player", [mso_interaction_key],-111, _SquadManagement] call CBA_ui_fnc_add;
	// This one does!
	["player", [mso_interaction_key], -110, ["scripts\Operator_Menu\ICE_squadManagement\custom\menu.sqf", "main"]] call CBA_ui_fnc_add;
	["player", [mso_interaction_key], -110, ["scripts\Operator_Menu\menu.sqf", "main"]] call CBA_ui_fnc_add;
    //["player", [mso_interaction_key], -9399, ["scripts\callAcreSync.sqf", "main"]] call CBA_ui_fnc_add;
	
	
	
    removeallweapons player;
    removeallitems player;
    removeBackpack player;

	// Add the medic belt gear.
    [player,2,4,2,true] call ACE_fnc_PackIFAK;
	
  _BLUFOR_Rifleman1playerweap = [
	 "ACE_SOC_M4A1_Aim",
	 "ACE_FAST_PackEDC",
	 "NVGoggles",
	 "ItemRadio",
	 "ACRE_PRC148",
	 "ItemCompass",
	 "Binocular_Vector",
	 "ACE_DAGR",
	 "ACE_Earplugs",
	 "ItemMap",
	 "ACE_GlassesLHD_glasses",
	 "ItemWatch",
	 "ACE_KeyCuffs",
	 "ACE_MineMarkers_MineFlag"
	 ];

  _BLUFOR_Rifleman1playerammo = [
	 ["ACE_30Rnd_556x45_T_Stanag", 7],
	 ["ACE_Battery_Rangefinder", 1],
	 ["SmokeShell", 2],
	 ["HandGrenade_West",2],
	 ["ACE_Epinephrine", 2],
	 ["ACE_Morphine", 2],
	 ["ACE_Bandage", 2]
	 ];

    
  // Set weapons and ammo...will remove existing.
  [player, _BLUFOR_Rifleman1playerweap, _BLUFOR_Rifleman1playerammo] spawn ACE_fnc_changeLoadOut;
  // Pack the ruck.
  [player, "ACE_30Rnd_556x45_T_Stanag", 6] call ACE_fnc_PackMagazine;
  [player, "ACE_LargeBandage", 2] call ACE_fnc_PackMagazine;
  [player, "ACE_Medkit", 2] call ACE_fnc_PackMagazine;
  [player, "HandGrenade_West", 3] call ACE_fnc_PackMagazine;
  [player, "ACE_M7A3", 1] call ACE_fnc_PackMagazine;
  [player, "ACE_M84", 1] call ACE_fnc_PackMagazine;
  [player, "SmokeShellGreen", 1] call ACE_fnc_PackMagazine;
  [player, "SmokeShellRed", 1] call ACE_fnc_PackMagazine;
  //[player, "", 0] call ACE_fnc_PackMagazine;
  //[player, "", 0] call ACE_fnc_PackMagazine;
  

  player selectWeapon (primaryWeapon player);
};
